<?php
namespace app\mxty\logic;

use app\mxty\model\Booking as BookingModel;

class Booking
{
    // 根据订单id获取订单信息
    public function getOrderInfo($id)
    {
        $model = (new BookingModel())->getOrderById($id);
        return $model;
    }

    //  根据订单号查询订单信息
    public function getOrderByNo($order_no)
    {
        $model = (new BookingModel())->getOrderByNo($order_no);
        return $model;
    }
}
